CREATE TABLE [ErrorLog](
      [IdErrorLog] [bigint] IDENTITY(1,1) NOT NULL,
      [TimeStamp] [datetime] NULL,
      [Usuario] [nvarchar](100) NULL,
      [MnemonicoPapel] [nvarchar](500) NULL,
      [Exception] [nvarchar](500) NULL,
      [Message] [nvarchar](max) NULL,
      [Pagina] [nvarchar](max) NULL,
      [Source] [nvarchar](500) NULL,
      [Classe] [nvarchar](255) NULL,
      [Metodo] [nvarchar](500) NULL,
      [StackTrace] [nvarchar](max) NULL,
      [Nota] [nvarchar](max) NULL,
      [REMOTE_ADDR] [nvarchar](20) NULL,
      [HTTP_REFERER] [nvarchar](max) NULL,
      [ComputerName] [nvarchar](150) NULL,
      [TesteId] [nvarchar](150) NULL,
      [InnerStackTrace] [nvarchar](max) NULL,
PRIMARY KEY CLUSTERED 
(
      [IdErrorLog] DESC
)
) ON [PRIMARY]

GO

ALTER TABLE [ErrorLog] ADD  DEFAULT (getdate()) FOR [TimeStamp]
GO

